package com.lxc.graduation.service.Impl;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.lxc.graduation.dao.DocumentRecommendMapper;
import com.lxc.graduation.entity.domain.DocumentRecommend;
import com.lxc.graduation.service.DocumentRecommendService;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.config.YamlProcessor;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @Author: ck
 * @Description:
 * @Date: Create in 14:24 2021/3/4
 */
@Service
@Slf4j
public class DocumentRecommendServiceImpl  implements DocumentRecommendService {
    @Autowired
    private DocumentRecommendMapper documentRecommendMapper;
    @Override
    public List<DocumentRecommend> findByDocId(Integer id) {
        return documentRecommendMapper.selectList(new QueryWrapper<DocumentRecommend>().eq("doc_id",id));
    }
}
